package com.beone.smart.smartBeauty.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.beone.smart.smartBeauty.model.entity.SkinRankDO;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface SkinRankDao extends BaseMapper<SkinRankDO> {
    @Select("SELECT area,avg(LEVEL) as level  from skin_rank GROUP BY area ORDER BY `level` desc")
    List<HashMap<String, Double>> getList();
}
